package com.agilegroup.crm.requests;

import com.agilegroup.crm.model.CallList;
import com.octo.android.robospice.request.springandroid.SpringAndroidSpiceRequest;

public class CallsJsonRequest extends SpringAndroidSpiceRequest<CallList>{

	private String empId;
	private String url;
	public CallsJsonRequest(String empId,String url) {
		super(CallList.class);
		this.empId=empId;
		this.url=url;
	}
	
	@Override
	public CallList loadDataFromNetwork() throws Exception {
		return getRestTemplate().getForObject(url+empId+".json", CallList.class);
	}
}
